﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Z2.Core
{
	public static class RandomGenerator
	{

		private static int _seed;
		private static Random _rnd;

		static RandomGenerator()
		{
			unchecked
			{
				_seed = (int)DateTime.Now.Ticks;
				Thread.Sleep(10);
			}
			_rnd = new Random(_seed);
		}

		public static Random Random
		{
			get { return _rnd; }
		}
	}
}
